package com.wang.service.impl;

import com.wang.dao.UserDao;
import com.wang.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author wang
 * @Date 2024/10/5 15:17
 * @PackageName:com.wang.service.impl
 * @ClassName: UserServiceImpl
 * @Description: TODO
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;
    @Override
    public boolean login(String username, String password) {
        if (userDao.login(username,password)){
            return true;
        }
        return false;
    }
}
